|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.engine.support.AbstractReporter
org.eclipse.vtp.framework.engine.support.AbstractLogger
org.eclipse.vtp.framework.engine.support.AbstractContext
org.eclipse.vtp.framework.engine.support.AbstractProcessContext
public abstract class AbstractProcessContext
A support implementation of the IProcessContext interface.
| Field Summary | |
|---|---|
protected IProcessDescriptor |
descriptor
The process descriptor. |
protected java.util.Set |
providedServiceIdentifiers
The service identifiers provided by the descriptor. |
protected static java.util.Set |
RESERVED_SERVICE_IDENTIFIERS
The service identifiers that will return this context. |
| Fields inherited from interface org.eclipse.vtp.framework.core.IReporter |
|---|
SEVERITY_DEBUG, SEVERITY_ERROR, SEVERITY_INFO, SEVERITY_WARN |
| Constructor Summary | |
|---|---|
protected |
AbstractProcessContext(IProcessDescriptor descriptor)
Creates a new AbstractProcessContext. |
| Method Summary | |
|---|---|
protected void |
doReport(int severity,
java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Implementation of report creation and publication after checking the severity. |
java.lang.String |
getProcessID()
Returns the ID of this process. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns the value of the process-level configuration property with the specified name or null if no such property exists. |
boolean |
isSeverityEnabled(int severity)
Returns true if the specified severity level is enabled. |
java.lang.Class |
loadClass(java.lang.String className)
Loads a class visible to the process. |
protected java.lang.Object[] |
lookupAllLocalServices(java.lang.String identifier)
Returns all the services registered under the specified identifier in this registry or null if no such services can be found. |
protected java.lang.Object |
lookupLocalService(java.lang.String identifier)
Returns a service registered under the specified identifier in this registry or null if no such service exists. |
protected java.lang.Object |
lookupReservedService(java.lang.String identifier)
Returns the reserved service if the specified identifier is one of the reserved identifiers or null if these conditions are not
met. |
| Methods inherited from class org.eclipse.vtp.framework.engine.support.AbstractContext |
|---|
lookup, lookupAll, lookupAllInheritedServices, lookupInheritedService |
| Methods inherited from class org.eclipse.vtp.framework.engine.support.AbstractLogger |
|---|
debug, debug, debug, debug, doLog, error, error, error, error, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, log, log, log, warn, warn, warn, warn |
| Methods inherited from class org.eclipse.vtp.framework.engine.support.AbstractReporter |
|---|
report, report, report, report |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.vtp.framework.core.IContext |
|---|
lookup, lookupAll |
| Methods inherited from interface org.eclipse.vtp.framework.core.ILogger |
|---|
debug, debug, debug, debug, error, error, error, error, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, log, log, log, warn, warn, warn, warn |
| Methods inherited from interface org.eclipse.vtp.framework.core.IReporter |
|---|
report, report, report, report |
| Field Detail |
|---|
protected static final java.util.Set RESERVED_SERVICE_IDENTIFIERS
protected final IProcessDescriptor descriptor
protected final java.util.Set providedServiceIdentifiers
| Constructor Detail |
|---|
protected AbstractProcessContext(IProcessDescriptor descriptor)
throws java.lang.NullPointerException
descriptor - The process descriptor.
java.lang.NullPointerException - If the supplied descriptor is
null.| Method Detail |
|---|
protected void doReport(int severity,
java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
AbstractReporter
doReport in class AbstractReporterseverity - The severity of the report.categories - The categories the report pertains to or
null if no catagories are related.message - The message associated with the report or null
to not include a message.properties - The properties of the report or null if no
properties are specified.public boolean isSeverityEnabled(int severity)
IReporter
isSeverityEnabled in interface IReporterseverity - The severity to check.
protected java.lang.Object lookupReservedService(java.lang.String identifier)
AbstractContextnull if these conditions are not
met.
lookupReservedService in class AbstractContextidentifier - The identifier of the service to return, will never be
null.
null if these conditions are
not met.protected java.lang.Object lookupLocalService(java.lang.String identifier)
AbstractContextnull if no such service exists.
lookupLocalService in class AbstractContextidentifier - The identifier of the service to return, will never be
null.
null if no such service exists.protected java.lang.Object[] lookupAllLocalServices(java.lang.String identifier)
AbstractContextnull if no such services can be found.
lookupAllLocalServices in class AbstractContextidentifier - The identifier of the services to return, will never be
null.
null if no such services can be found.public final java.lang.String getProcessID()
IProcessContext
getProcessID in interface IProcessContext
public final java.lang.Object getProperty(java.lang.String propertyName)
throws java.lang.NullPointerException
IProcessContextnull if no such property exists.
getProperty in interface IProcessContextpropertyName - The name of the configuration property to return.
null if no such property exists.
java.lang.NullPointerException - If the supplied property name is
null.
public final java.lang.Class loadClass(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.NullPointerException
IProcessContext
loadClass in interface IProcessContextclassName - The name of the class to load.
java.lang.ClassNotFoundException - If a class with the specified name cannot be
found.
java.lang.NullPointerException - If the supplied class name is
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||